import request from '@/utils/request'

// 查询会员钱包列表
export function listMemberPurse(query) {
  return request({
    url: '/member/memberPurse/list',
    method: 'get',
    params: query
  })
}

// 查询会员钱包详细
export function getMemberPurse(id) {
  return request({
    url: '/member/memberPurse/' + id,
    method: 'get'
  })
}

// 新增会员钱包
export function addMemberPurse(data) {
  return request({
    url: '/member/memberPurse',
    method: 'post',
    data: data
  })
}

// 修改会员钱包
export function updateMemberPurse(data) {
  return request({
    url: '/member/memberPurse',
    method: 'put',
    data: data
  })
}

// 删除会员钱包
export function delMemberPurse(id) {
  return request({
    url: '/member/memberPurse/' + id,
    method: 'delete'
  })
}
